package com.cosmoplat.xikai.business.controller.agv;


import com.alibaba.fastjson2.JSONObject;
import com.cosmoplat.xikai.business.domain.dto.agv.AgvCallbackRequest;
import com.cosmoplat.xikai.business.domain.dto.agv.AgvCallbackResponse;
import com.cosmoplat.xikai.business.service.AgvService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AgvTestController
 * @Description 测试接口
 * @Author wdf
 * @Date 2025/9/2
 */
@Slf4j
@RestController
public class AgvTestController {



    /**
     * /continueTask 测试接口
     * 接口路径: /continueTask
     * 请求方式: POST
     *
     * @param request AGV回调请求参数
     * @return 处理结果响应
     */
    @PostMapping("/continueTask")
    public AgvCallbackResponse handleAgvCallback(@RequestBody JSONObject request) {
        log.info("continueTask请求: {}", request);
        return new AgvCallbackResponse("0", "成功", "ok");
    }
}
